import request from '@/utils/request.js'
export const userregister = (data) => {
    const params = new URLSearchParams()
    for (let key in data) {
        params.append(key, data[key]);
    }
    return request.post('/user/register', data);
}
export const userlogin = (data) => {
    const params = new URLSearchParams()
    for (let key in data) {
        params.append(key, data[key]);
    }
    return request.post('/user/login', data)
}
